﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Storage.EntityModels
{
    /// <summary>
    /// This class represents a generic simple DBField entity.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public class DBField : Attribute
    {
        /// <summary>
        /// Create a new DBField entity.
        /// </summary>
        /// <param name="field">The name of the Database Field.</param>
        public DBField(string field)
        {
            Field = field;
        }

        /// <summary>
        /// Get and Set the DBField.
        /// </summary>
        public string Field { get; private set; }
    }
}
